<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>

  </style>
</head>

<div id="app"></div>


<!-- v-model 给表单应用的，绑定数据  -->
<template id="my-app">
  <!-- <input type="text" v-model="account">
  <input type="password" v-model="password">
  <button @click="sumbit">登录</button> -->
 
  <!-- 双向绑定数据 -->
  <!-- <input type="text" v-model="msg">
  <p>{{msg}}</p> -->


  <div>
    <p>我喜欢的水果:{{fruit}}</p>
    <select name="" id="" v-model="fruit" multiple size="2">
      <!-- multiple 多选 -->
      <option value="apple">苹果</option>
      <option value="orange">橘子</option>
      <option value="banana">香蕉</option>
    </select>

  </div>

</template>

<body>
  <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>


  <script>
    Vue.createApp({
      template: '#my-app',
      data: function () {
        return {
          account:'',
          password:'',
          msg:'123',
          fruit:''
        }
      },
      methods: {
        sumbit(){
          console.log(this.account ,this.password);
        }
      }



    }).mount('#app')
  </script>
</body>

</html>